package com.sealer.ch3_2.service;

import com.sealer.ch3_2.model.Paper;
import com.sealer.ch3_2.qualifier.MyQualifier;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by sealer on 17/04/11.
 */
public class Read {
    private Paper paper;

    public void read() {
        System.out.println(paper.getContent() + "...");
    }

    public Paper getPaper() {
        return paper;
    }

    @Autowired(required = false)
    @MyQualifier
    public void setPaper(Paper paper) {
        this.paper = paper;
    }
}
